-- GENERATED SPELL FOR [Shienor Sorcerer] --


function spell0_18450(pUnit, Event) --@Arakkoa Blast,n/a--
pUnit:FullCastSpellOnTarget(32907,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18450', 662, 1)
end

function spell1_18450(pUnit, Event) --@Enveloping Winds,n/a--
pUnit:FullCastSpellOnTarget(6728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18450', 12000, 1)
end

function spell2_18450(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(26098,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18450', 3000, 1)
end

function spell3_18450(pUnit, Event) --@Power of Kran\'aish,n/a--
pUnit:FullCastSpellOnTarget(32924,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18450', 0, 1)
end

function Sorts_18450(pUnit, Event)
local choix_sorts_18450 = math.random(0, 3)
if choix_sorts_18450 == 0 then
pUnit:RegisterEvent('spell0_18450', 1, 1)
end
if choix_sorts_18450 == 1 then
pUnit:RegisterEvent('spell1_18450', 1, 1)
end
if choix_sorts_18450 == 2 then
pUnit:RegisterEvent('spell2_18450', 1, 1)
end
if choix_sorts_18450 == 3 then
pUnit:RegisterEvent('spell3_18450', 1, 1)
end
end

function mob18450_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18450', math.random(1500, 3000), 1)
end

function mob18450_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18450_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18450_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18450, 1, 'mob18450_Action')
RegisterUnitEvent(18450, 2, 'mob18450_Leave')
RegisterUnitEvent(18450, 3, 'mob18450_Kill')
RegisterUnitEvent(18450, 4, 'mob18450_Die')
